/*
 * @Descripttion:
 * @version:
 * @Author: yuanpingfang
 * @Date: 2022-07-23 16:19:16
 * @LastEditors: yuanpingfang
 * @LastEditTime: 2022-07-23 16:53:43
 */
import request from "@/utils/request";

// 查询业务流水列表
export function listLog(query) {
  debugger;
  return request({
    url: "/busi/log/list",
    method: "get",
    params: query,
  });
}

// 查询业务流水详细
export function getLog(flowId) {
  return request({
    url: "/busi/log/" + flowId,
    method: "get",
  });
}

// 新增业务流水
export function addLog(data) {
  return request({
    url: "/busi/log",
    method: "post",
    data: data,
  });
}

// 修改业务流水
export function updateLog(data) {
  return request({
    url: "/busi/log",
    method: "put",
    data: data,
  });
}

// 删除业务流水
export function delLog(flowId) {
  return request({
    url: "/busi/log/" + flowId,
    method: "delete",
  });
}
// 根据工作流流程实例ID获取表单参数
export function getBusinessLog(procInstanceId) {
  return request({
    url: "/busi/log/instance/" + procInstanceId,
    method: "get",
  });
}
